<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
</head>
<body>
<div th:fragment="tableBlock" class="widget-content">
    <div class="table-responsive">
        <table id="datatable" class="table table-striped data-table table-bordered" width="100%">
        <thead>
        <tr>
            <th class="table-head" id="appKey">应用系统编号</th>
            <th class="table-head" id="appName">应用系统名称</th>
            <th class="table-head" id="appToken">应用TOKEN</th>
            <th class="table-head" id="appUrl">应用访问URL</th>
            <th class="table-head" id="enable">启用</th>
            <th class="table-head" id="appRemark">应用系统说明</th>
            <th class="table-head">操作</th>
        </tr>
        </thead>

        <tbody>
        <tr  th:each="bApp : ${formBean.list}">
            <td class="table-content" th:text="${bApp.appKey}"></td>
            <td class="table-content" th:text="${bApp.appName}"></td>
            <td class="table-content" th:text="${bApp.appToken}"></td>
            <td class="table-content" th:text="${bApp.appUrl}"></td>
            <td class="table-content" th:switch="${bApp.enable}">
                <p th:case="1">启用</p>
                <p th:case="0" style="background-color: #942a25">未启用</p>
            </td>
            <td class="table-content" th:text="${bApp.appRemark}"></td>
            <td>
                <div class="td-operate">
                    <a href="#" th:onclick="'javascript:editInfo(\'apps\',\''+${bApp.guid}+'\');'" class="td-edit">编辑</a>
                    <a href="#" th:onclick="'javascript:delConfirm(\'apps\',\''+${bApp.guid}+'\');'" class="td-del">删除</a>
                </div>
            </td>
        </tr>

        </tbody>

    </table>
    </div>
</div>

</body>
</html>